import Vue from 'vue'
import "babel-polyfill"               
import VueRouter from 'vue-router'
import Meeting from './Meeting'
import router from './router'          
import 'lib-flexible'
import 'common/style/reset.css'
import Vuex from 'vuex'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import Axios from 'axios'
import VueTap from 'v-tap'
import wx from 'weixin-js-sdk'
import {
  Picker,
  Popup,
  List,
  Uploader,
  Swipe,
  SwipeItem,
  Search,
  Icon,
  Loading,
  Checkbox,
  CheckboxGroup,
  Cell,
  CellGroup,
  Dialog,
  Field,
  Tab,
  Tabs,
  Area,
  Toast
} from 'vant';
import 'vant/lib/index.css';
import {post,fetch,patch,put} from './utils/request'
//定义全局变量
Vue.prototype.$post=post;
Vue.prototype.$fetch=fetch;
Vue.prototype.$patch=patch;
Vue.prototype.$put=put;
import '@/permission'
Vue.use(Picker).use(Popup).use(List).use(Uploader).use(Swipe).use(SwipeItem).use(Search).use(Icon).use(Loading).use(Checkbox).use(CheckboxGroup).use(Cell).use(CellGroup).use(Field).use(Dialog).use(Tab).use(Tabs).use(Area).use(Toast);
Vue.use(VueRouter);
Vue.prototype.$http = Axios;
Vue.use(Vuex);
Vue.use(MintUI);

new Vue({
  el: '#meeting',
  router,
  render: h => h(Meeting)
});
